//
//  NSDataAdditions.m
//  MapEdit
//
//  Created by Steven Canfield on 7/6/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "NSMutableDataAdditions.h"


@implementation NSMutableData (CHKDataAdditions)
- (void)appendSectionNamed:(const char *)section withBytes:(void *)bytes length:(int)len {
	NSLog(@"%s (%i)", section, len );
	[self appendBytes:section length:(4 * sizeof( char ))];
	[self appendBytes:(u_int32_t*)&len length:sizeof(u_int32_t)];
	[self appendBytes:bytes length:len];
}
@end
